package com.wtc.override;

public class Student extends Person {
    private int id;
    private int score;

    public Student(String name, int age) {
        super(name, age);
    }

    public Student(String name, int age, int id, int score) {
        super(name, age);
        this.id = id;
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
    public String say() {
        return super.say() + "ID：" + id + "，分数" + score;
    }
    public void print() {
        System.out.println("子类特有方法！");
    }
}
